package com.fang.dubbo.mock.rpc.provider;


import com.fang.dubbo.mock.common.FangResponse;
import com.fang.dubbo.mock.rpc.annotation.FangDubboService;
import com.fang.dubbo.mock.rpc.publicinterface.DemoRpcService;

/**
 * @author fanglingxiao
 * @version 1.0
 * @description TODO
 * @date 2022/1/2 12:16 下午
 **/
@FangDubboService(clazz = DemoRpcService.class, ip = "127.0.0.1", port = 7000)
public class DemoRpcServiceImpl implements DemoRpcService {
    /**
     * demo rpc method
     *
     * @param name name
     * @return FangResponse<String>
     * @author fanglingxiao
     * @createDateTime 2022/1/2 12:15 下午
     */
    @Override
    public FangResponse<String> sayHello(String name) {
        return FangResponse.succ("hello ! welcome demo rpc " + name);
    }
}
